using System;

namespace hao_Dto.User
{
    public class CreateRoleDto
    {
        public string Name { get; set; }
        public string Description { get; set; }
    }
    
    public class UpdateRoleDto
    {
        public string Name { get; set; }
        public string Description { get; set; }
    }
    
    /// <summary>
    /// 角色分页查询参数
    /// </summary>
    public class RolePagedQueryDto
    {
        /// <summary>
        /// 页码（从1开始）
        /// </summary>
        public int PageNumber { get; set; } = 1;
        
        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; } = 10;
        
        /// <summary>
        /// 搜索关键词（角色名称）
        /// </summary>
        public string? Keyword { get; set; }
        
        /// <summary>
        /// 排序字段
        /// </summary>
        public string OrderBy { get; set; } = "Id";
        
        /// <summary>
        /// 是否降序
        /// </summary>
        public bool IsDescending { get; set; } = false;
    }
}